package com.njlime.sys.repository;

import com.njlime.sys.entities.ConfigItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ConfigItemDao extends JpaRepository<ConfigItem, Integer>,JpaSpecificationExecutor<ConfigItem> {
    ConfigItem getByName(String config_name, Integer unit_id);
    int updateByName(String config_name, String config_value, Integer unit_id);
    public void deleteByUnit(Integer unit_id);
}
 